﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApp5
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
       

        public MainWindow()
        {
            InitializeComponent();
           

            this.WindowStyle = WindowStyle.None;//设置窗体无边框
            this.AllowsTransparency = true;//窗体支持透明度
            this.Opacity = 1;//设置透明度为0.4
          // label1.Content = Environment.MachineName;
            label1.Content = "班前会口号：\n耳机戴，联通人，好服务，依标准；\n滴一声，即问好，多用请，多用您；\n查业务，知识库，预处理，特别灵；\n用户急，我安抚，多倾听，复述清；\n有疑难，班长撑，受委屈，控制好。\n";
             this.ShowInTaskbar = false;
          //      Window1 win1 = new Window1();
          //      win1.Show();
           
            SendKeys.SendWait("%{Tab}");



        }
        //阻止 alt+f4和alt+space 按键
        protected override void OnKeyDown(System.Windows.Input.KeyEventArgs e)
        {
            if (Keyboard.Modifiers == ModifierKeys.Alt && e.SystemKey == Key.Space)
            {
                e.Handled = true;
            }
            else if (Keyboard.Modifiers == ModifierKeys.Alt && e.SystemKey == Key.F4)
            {
                e.Handled = true;
            }
            else
            {
                base.OnKeyDown(e);
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
